{% extends "enterprise/base.html" %}

{% block css %}
    <link rel="stylesheet" type="text/css" href="http://61.155.4.230:8807/arcgis_js_api/library/3.1/jsapi/js/dojo/dijit/themes/claro/claro.css">
    <style type="text/css">
    .panel>.panel-body.with-table table.input_in td>span {
        float: none;
    }
</style>
{% endblock %}

{% block content %}
<script type="text/javascript">
    var primary_menu = "menu_0";
    var sub_menu = "menu_0_0";
</script>
<div class="col-md-12">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <div class="panel-title"><h3>经办人信息</h3></div>
            <div class="panel-options">
                {% ifequal enter_status '1' %}
                <a href="/basic/editFillPeople/" class="bg"><button type="button" class="btn btn-success"> 已确认 </button></a>
                {% else %}
                <a href="/basic/editFillPeople/" class="bg"><button type="button" class="btn btn-success"> 未确认 </button></a>
                {% endifequal %}
            </div>
        </div>
        <div class="panel-body with-table" style="padding:0px;">
            <table class="input_in table-detail">
                <tr>
                    <th width=20%>填报人员</th>
                    <td width=30%>{{enter_people.fill_people  }}</td>
                    <th width=20%>Mail</th>
                    <td width=30%>{{ enter_people.mail }}</td>
                </tr>
                <tr>
                    <th>固定电话</th>
                    <td>{{ enter_people.local_phone }}</td>
                    <th>移动电话</th>
                    <td>{{ enter_people.mobile_phone }}</td>
                </tr>
                <tr>
                    <th>传真</th>
                    <td>{{ enter_people.fax }}</td>
                    <th>邮政编码</th>
                    <td>{{ enter_people.postal_code }}</td>
                </tr> 
                </table> 
        </div>

    </div>
</div>
<div class="col-md-12">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <div class="panel-title"><h3>企业基本情况</h3></div>
            <div class="panel-options">
                 {% ifequal basic_status '1' %}
                <a href="/basic/edit/" class="bg"><button type="button" class="btn btn-success"> 已确认 </button></a>
                {% else %}
                <a href="/basic/edit/" class="bg"><button type="button" class="btn btn-success"> 未确认 </button></a>
                {% endifequal %}
            </div>
        </div>
        <div class="panel-body with-table">
            <form>
                <table class="input_in table-detail">
                    <tr>
                        <th>企业名称</th>
                        <td colspan=1>{{basic.enterprise_name}}</td>
                        
                        <th>组织机构代码</th>
                        <td colspan=1>{{basic.organization_code}}</td>
                    </tr>
                    <tr>
                        <th width=20%>企业法人</th>
                        <td width=30%>{{basic.legal_person}}</td>
                        <th width=20%>法人联系方式</th>
                        <td width=30%>{{basic.legal_person_information}}</td>
                        
                    </tr>
                    <tr>
                        <th width=20%>企业环保负责人管理员</th>
                        <td width=30%>{{basic.company_contact}}</td>
                        <th width=20%>联系方式</th>
                        <td width=30%>{{basic.company_contact_information}}</td>
                        
                    
                    <tr>
                        <th>工商注册号（营业执照复印件）</th>
                        <td colspan="3">
                            {{basic.registration_No}}&nbsp;&nbsp;
                            <a href="/{{basic.business_license_photocopy}}" target="_blank" style="color: blue;">[查看附件]</a>
                        </td>                         
                    </tr>
                    <tr>
                        <th>工商注册地址</th>
                        <td colspan="3">
                            <span>{{basic.register_add0}}</span>
                            <span>{{basic.register_add_detail}}</span>
                        </td>
                        
                    </tr>
                    <tr>
                        <th>生产设施地址</th>
                        <td colspan="3">
                            <span>{{basic.facilities_add0}}</span>
                            <span>{{basic.facilities_add1}}</span>
                            <span>{{basic.facilities_add2}}</span>
                            <span>{{basic.facilities_add_detail}}</span>
                            <span> <b> 中心经度 </b>：{{basic.lon}} <b> 中心纬度 </b>：{{basic.lat}}</span>
                        </td>
                    </tr>
                    <tr>

                        <th>是否进入工业园区</th>
                        <td>
                        {%if  basic.industry_park_time %}
                       	 	是
                        {%else%}
                        	否
                        {% endif %}
                        </td>
                        <th> </th>
                        <td> </td>
                        
                    </tr>
                    <tr>
                        <th>所在工业园区名称</th>
                        <td>
                        {{basic.industry_park_name}}
                        </td>
                    </tr>
                    <tr>
                        <th>工业园区级别</th>
                        <td>
                             {%if basic.industry_park_level == 1%}
                                    国家级
                             {% endif %}
                             {%if basic.industry_park_level == 2%}
                                    省级
                             {% endif %}
                             {%if basic.industry_park_level == 3%}
                                    市级
                             {% endif %} 
                             {%if basic.industry_park_level == 4%}
                                    其它
                             {% endif %}                        
                        </td>
                        
                        <th>工业园区代码</th>
                        <td>{{basic.industry_park_code}}</td>
                    </tr>
                    <tr>
                        <th>行业分类名称</th>
                        <td>{{basic.industry_name}}</td>
                        <th>行业分类代码</th>
                        <td>{{basic.industry_code}}</td>
                    </tr>
                    
                    <tr>
                        <th>注册资金(万元)</th>
                        <td>{{basic.registered_capital}}</td>
                        <th>工业总产值（万元）</th>
                        <td>{{basic.industrial_output}}</td>
                    </tr>
                    <tr>
                        <th>厂区面积（平方米）（附总平面布置图）</th>
                        <td>{{basic.area}}&nbsp;&nbsp;</td>
                        <th>厂区布置</th>
                        <td><a href="/{{basic.plane_layout}}" target="_blank" style="color: blue;">[查看附件]</a></td>
                    </tr>
                    <tr>
                        <th>企业人数（人）</th>
                        <td>{{basic.enterprise_number}}</td>
                        <th>企业规模</th>
                        <td>
                             {%if basic.scale == 1%}
                                    大型
                             {% endif %}
                             {%if basic.scale == 2%}
                                    中型
                             {% endif %}
                             {%if basic.scale == 3%}
                                    小型
                             {% endif %}
                        </td>
                    </tr>
                    <tr>
                        <th>建厂时间</th>
                        <td>{{basic.opening_time}}</td>
                        <th>最近改扩时间</th>
                        <td>{{basic.extension_time}}</td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>


{% endblock %}

{% block js %}


<script language="javascript">

    function getNextElement (field) {
        var form = field.form;
        for (var e = 0; e < form.elements.length; e++)
            if (field == form.elements[e])
                break;

        return form.elements[++e % form.elements.length];
    }
    function tabOnEnter (field, evt) {
        var keyCode = document.layers ? evt.which : document.all ?
                evt.keyCode : evt.keyCode;
        if (field.value.length == 1){
            getNextElement(field).focus();
            return false;
        }
    }
</script>
{% endblock %}